dhcpv4: rename iface->dhcpv4_local -> iface->dhcpv4_own_ip
authorDavid Härdeman <[email protected]>
Wed, 19 Nov 2025 23:29:18 +0000 (00:29 +0100)
committerÁlvaro Fernández Rojas <[email protected]>
Thu, 27 Nov 2025 07:24:09 +0000 (08:24 +0100)
commit558fb499c8c2f48d1cff9bc339e118c0220b4a1f
treea17562c06b5b7af78344f2fb5e24815a46976c03
parent1c2e8b60809aaa4fa12f75cae8447523ca626d70
dhcpv4: rename iface->dhcpv4_local -> iface->dhcpv4_own_ip

"local" isn't very informative, the local what?

In addition, use a struct odhpd_ipaddr instead of a struct in_addr, the
former can already store the prefix_len, broadcast and netmask address,
this will allow the separate iface->dhcpv4_bcast and iface->dhcpv4_mask
members to be removed (see subsequent patches).

Signed-off-by: David Härdeman <[email protected]>
Link: https://github.com/openwrt/odhcpd/pull/320
Signed-off-by: Álvaro Fernández Rojas <[email protected]>
src/dhcpv4.c
src/odhcpd.c
src/odhcpd.h